//
//  StoreUpTitleCell.m
//  TourPlay
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import "StoreUpTitleCell.h"

@implementation StoreUpTitleCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
    }
    return self;
}
- (void)createSubViews
{
    UILabel *activityL = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, SCREEN_WIDTH / 2.f - 10, 44)];
//    activityL.backgroundColor = [UIColor brownColor];
    activityL.text = @"活动收藏";
    activityL.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:activityL];
    [activityL release];
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(activityL.frame.origin.x + activityL.frame.size.width, 2, 1, 40)];
    view.backgroundColor = [UIColor colorWithRed:0.92 green:0.92 blue:0.92 alpha:1];
    [self.contentView addSubview:view];
    [view release];
    
    
    UILabel *userL = [[UILabel alloc] initWithFrame:CGRectMake(activityL.frame.origin.x + activityL.frame.size.width, 0, SCREEN_WIDTH / 2.f - 10, 44)];
//    userL.backgroundColor = [UIColor orangeColor];
    userL.text = @"用户收藏";
    userL.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:userL];
    [userL release];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
